import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../view/layout/Index'
import Employee from "../view/basic/employee";
import Express from"../view/basic/Express";
import user from"../view/basic/user";
import dataDict from"../view/basic/dataDict";
import Login2 from "../view/login/login4";
import shouYe from "../view/website/shouYe";
import ImgContent from '../view/website/Content'
import partner from "../view/basic/partner"
import merchants from "../view/basic/merchants"
import platform from "../view/basic/platform"
import merchant from "../view/charts/merchant"
import station from "../view/charts/station"
import consumers from "../view/charts/consumers";
import Expqua from "../view/charts/Expqua";
import * as echarts from 'echarts';
Vue.prototype.$echarts=echarts;
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login2
    },
    {
      path: '/login2',
      name: 'Login2',
      component: Login2
    },
    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [
        {
          path: 'employee',
          name: 'Employee',
          component: Employee
        },/*{
          path:'merchant',
          name:'merchant',
          component: merchant
        },*/
        {
          path:'express',
          name:'Express',
          component:Express
        },{
          path:'user',
          name:'user',
          component:user
        },{
          path:'dataDict',
          name:'dataDict',
          component:dataDict
        },{
          path:'partner',
          name:'partner',
          component:partner
        },{
          path:'merchants',
          name:'merchants',
          component:merchants
        },{
          path:'platform',
          name:'platform',
          component:platform
        }
      ]
    },{
      path:'/shouYe',
      name:'shouYe',
      component:shouYe,
      children: [
        {
          path:'content',
          name:'Content',
          component:ImgContent
        },{
            path:'merchant',
            name:'Merchant',
            component:merchant
        },{
          path:'station',
          name:'station',
          component: station
        },{
          path:'consumers',
          name:'consumers',
          component: consumers
        },{
          path:'Expqua',
          name:'Expqua',
          component: Expqua
        },
      ]
    }
  ]
})
